﻿using System;
using System.Collections.Generic;
using System.Text;

namespace BarStructures.Deformed
{
    public struct NodeDisplacement: IEquatable<NodeDisplacement>
    {
        public double Dx;

        public double Dy;

        public double Da;

        public Node Node;

        public NodeDisplacement(Node node, double dx, double dy, double da)
        {
            this.Dx = dx;
            this.Dy = dy;
            this.Da = da;
            this.Node = node;
        }

        #region IEquatable<NodeDisplacement> Members

        public bool Equals(NodeDisplacement other)
        {
            return this.Node.Equals(other.Node);
        }

        #endregion
    }
}
